<?php
include '../db_functions/database.php';
$connection=Connect();	
$user_name = $_POST["user_name"];
$user_surname = $_POST["user_surname"];
$user_address = $_POST["user_address"];
$user_phone = $_POST["user_phone"];
$user_username = $_POST["user_username"];
$user_password = $_POST["user_password"];
$user_floor = $_POST["user_floor"];
$query="INSERT INTO customers (customer_name, customer_surname, customer_address, customer_floor,customer_phone,customer_username,customer_password,customer_confirmed)
VALUES ('".$user_name."', '".$user_surname."', '".$user_address."', '".$user_floor."','".$user_phone."','".$user_username."','".$user_password."','No')";
if (!mysql_query( $query, $connection ))
	die( 'Error: ' . mysql_error() );
	
header( 'Location: ../index.php' ) ;
?>